#coding:utf-8
import wx
import notebook_hasapk as hasapk
import notebook_noapk as noapk
class NoteBook(wx.Notebook):
    def __init__(self,parent,id):
        wx.Notebook.__init__(self,parent,id)
        self.AddPage(hasapk.NoteBook_HasApk(self,-1),u'有apk')
        self.AddPage(noapk.NoteBook_NoApk(self,-1),u'无apk')

    def SendPageChanged(self,evt):
        print evt.GetSelection()


class NoteBookData:
    def __init__(self):
        self.__datas =[]
        self.__currentPageData=None

    def addDatas(self,data):
        self.__datas.append(data)


    def setCurrentPageData(self,data):
        self.__currentPageData = data

    def getCurrentPageData(self,data):
        return self.__currentPageData
